package com.mchat;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
@Data
@ConfigurationProperties(prefix = "mchat.common")
public class CommonProperties {
    @Value("${spring.mail.username}")
    private String username;
    private int mailValidTime;
    private Snowflake snowflake=new Snowflake();
    @Data
    public static class Snowflake {
        private int workerId;
        private int dataCenterId;
    }
}
